package com.mycinema.entity;

import java.util.List;

/**
 * 分类实体
 * @author panyingtao
 *
 */
public class Category {
	private int id;
	private String name;
	private List<Movie> movies;
	
	public List<Movie> getMovies() {
		return movies;
	}
	public void setMovies(List<Movie> movies) {
		this.movies = movies;
	}
	/**
	 * 读取编号
	 * @return
	 */
	public int getId() {
		return id;
	}
	/**
	 * 写入编号
	 * @param id
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * 读取分类名
	 * @return
	 */
	public String getName() {
		return name;
	}
	/**
	 * 写入分类名
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
}
